vs
QUICK ANSWER
"Por qué" is a form of "por qué", a phrase which is often translated as "why". "De qué" is a phrase which is often translated as "what". Learn more about the difference between "por qué" and "de qué" below.
por qué()
A phrase is a group of words commonly used together (e.g., once upon a time).
A masculine noun is used with masculine articles and adjectives (e.g., el hombre guapo, el sol amarillo).
de qué()
A phrase is a group of words commonly used together (e.g., once upon a time).